//
// Created by 张兮兮 on 2025/3/13.
//

#ifndef TEMP_VIDEOWIDGET_H
#define TEMP_VIDEOWIDGET_H

#include "SocketWidget.h"
#include <QWidget>
#include <QPushButton>
#include <QTimer>
#include <QPainter>
#include <QImage>
#include <iostream>

class VideoWidget  : public QWidget{
Q_OBJECT
public:
    VideoWidget(QWidget *parent = nullptr);
private slots:
    void renderFrame();
    void destroyBWidget();
protected:
    void paintEvent(QPaintEvent *event) override;
private:
    QTimer *timer;
    QImage currentFrame;
    SocketWidget *socketWidget;
};


#endif //TEMP_VIDEOWIDGET_H
